/*******************************************************************************
 * Size: 16 px
 * Bpp: 4
 * Opts: --bpp 4 --size 16 --no-compress --font iconfont.woff --range 58880,58881,58886,58923 --format lvgl -o app_status_bar_font_music_symbol.c
 ******************************************************************************/

#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
#else
#include "lvgl/lvgl.h"
#endif

#ifndef APP_STATUS_BAR_FONT_MUSIC_SYMBOL
#define APP_STATUS_BAR_FONT_MUSIC_SYMBOL 1
#endif

#if APP_STATUS_BAR_FONT_MUSIC_SYMBOL

/*-----------------
 *    BITMAPS
 *----------------*/

/*Store the image of the glyphs*/
static LV_ATTRIBUTE_LARGE_CONST const uint8_t glyph_bitmap[] = {
    /* U+E600 "" */
    0x69, 0x0, 0x0, 0x0, 0x1, 0x95, 0xdf, 0x10,
    0x0, 0x0, 0x7f, 0xfb, 0xdf, 0x10, 0x0, 0x4d,
    0xff, 0xfb, 0xdf, 0x10, 0x1a, 0xff, 0xff, 0xfb,
    0xdf, 0x17, 0xff, 0xff, 0xff, 0xfb, 0xdf, 0xcf,
    0xff, 0xff, 0xff, 0xfb, 0xdf, 0xdf, 0xff, 0xff,
    0xff, 0xfb, 0xdf, 0x29, 0xff, 0xff, 0xff, 0xfb,
    0xdf, 0x10, 0x3c, 0xff, 0xff, 0xfb, 0xdf, 0x10,
    0x0, 0x6e, 0xff, 0xfb, 0xdf, 0x10, 0x0, 0x1,
    0x9f, 0xfb, 0x8b, 0x0, 0x0, 0x0, 0x3, 0xb6,

    /* U+E601 "" */
    0x59, 0x10, 0x0, 0x0, 0x0, 0x96, 0xbf, 0xf7,
    0x0, 0x0, 0x1, 0xfd, 0xbf, 0xff, 0xd4, 0x0,
    0x1, 0xfd, 0xbf, 0xff, 0xff, 0xa1, 0x1, 0xfd,
    0xbf, 0xff, 0xff, 0xff, 0x71, 0xfd, 0xbf, 0xff,
    0xff, 0xff, 0xfc, 0xfd, 0xbf, 0xff, 0xff, 0xff,
    0xfd, 0xfd, 0xbf, 0xff, 0xff, 0xff, 0x92, 0xfd,
    0xbf, 0xff, 0xff, 0xc3, 0x1, 0xfd, 0xbf, 0xff,
    0xe6, 0x0, 0x1, 0xfd, 0xbf, 0xf9, 0x10, 0x0,
    0x1, 0xfd, 0x6b, 0x30, 0x0, 0x0, 0x0, 0xb8,

    /* U+E606 "" */
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x6,
    0xed, 0x30, 0x0, 0x0, 0x0, 0x0, 0x1f, 0xff,
    0xf7, 0x0, 0x0, 0x0, 0x0, 0x3f, 0xff, 0xff,
    0xc2, 0x0, 0x0, 0x0, 0x3f, 0xff, 0xff, 0xff,
    0x50, 0x0, 0x0, 0x3f, 0xff, 0xff, 0xff, 0xfa,
    0x0, 0x0, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xd3,
    0x0, 0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0x60,
    0x3f, 0xff, 0xff, 0xff, 0xff, 0xff, 0xf1, 0x3f,
    0xff, 0xff, 0xff, 0xff, 0xff, 0xf1, 0x3f, 0xff,
    0xff, 0xff, 0xff, 0xff, 0x70, 0x3f, 0xff, 0xff,
    0xff, 0xff, 0xe3, 0x0, 0x3f, 0xff, 0xff, 0xff,
    0xfa, 0x0, 0x0, 0x3f, 0xff, 0xff, 0xff, 0x50,
    0x0, 0x0, 0x3f, 0xff, 0xff, 0xc2, 0x0, 0x0,
    0x0, 0x1f, 0xff, 0xf8, 0x0, 0x0, 0x0, 0x0,
    0x6, 0xec, 0x30, 0x0, 0x0, 0x0, 0x0, 0x0,
    0x0, 0x0, 0x0, 0x0, 0x0, 0x0,

    /* U+E62B "" */
    0x2e, 0xb0, 0x0, 0x0, 0xb, 0xe2, 0x6f, 0xf1,
    0x0, 0x0, 0x1f, 0xf6, 0x7f, 0xf1, 0x0, 0x0,
    0x1f, 0xf7, 0x7f, 0xf1, 0x0, 0x0, 0x1f, 0xf7,
    0x7f, 0xf1, 0x0, 0x0, 0x1f, 0xf7, 0x7f, 0xf1,
    0x0, 0x0, 0x1f, 0xf7, 0x7f, 0xf1, 0x0, 0x0,
    0x1f, 0xf7, 0x7f, 0xf1, 0x0, 0x0, 0x1f, 0xf7,
    0x7f, 0xf1, 0x0, 0x0, 0x1f, 0xf7, 0x7f, 0xf1,
    0x0, 0x0, 0x1f, 0xf7, 0x7f, 0xf1, 0x0, 0x0,
    0x1f, 0xf7, 0x7f, 0xf1, 0x0, 0x0, 0x1f, 0xf7,
    0x7f, 0xf1, 0x0, 0x0, 0x1f, 0xf7, 0x7f, 0xf1,
    0x0, 0x0, 0x1f, 0xf7, 0x6f, 0xf1, 0x0, 0x0,
    0x1f, 0xf6, 0x2e, 0xb0, 0x0, 0x0, 0xb, 0xe2
};


/*---------------------
 *  GLYPH DESCRIPTION
 *--------------------*/

static const lv_font_fmt_txt_glyph_dsc_t glyph_dsc[] = {
    {.bitmap_index = 0, .adv_w = 0, .box_w = 0, .box_h = 0, .ofs_x = 0, .ofs_y = 0} /* id = 0 reserved */,
    {.bitmap_index = 0, .adv_w = 256, .box_w = 12, .box_h = 12, .ofs_x = 2, .ofs_y = 0},
    {.bitmap_index = 72, .adv_w = 256, .box_w = 12, .box_h = 12, .ofs_x = 2, .ofs_y = 0},
    {.bitmap_index = 144, .adv_w = 256, .box_w = 14, .box_h = 18, .ofs_x = 1, .ofs_y = -3},
    {.bitmap_index = 270, .adv_w = 256, .box_w = 12, .box_h = 16, .ofs_x = 2, .ofs_y = -2}
};

/*---------------------
 *  CHARACTER MAPPING
 *--------------------*/

static const uint16_t unicode_list_0[] = {
    0x0, 0x1, 0x6, 0x2b
};

/*Collect the unicode lists and glyph_id offsets*/
static const lv_font_fmt_txt_cmap_t cmaps[] =
{
    {
        .range_start = 58880, .range_length = 44, .glyph_id_start = 1,
        .unicode_list = unicode_list_0, .glyph_id_ofs_list = NULL, .list_length = 4, .type = LV_FONT_FMT_TXT_CMAP_SPARSE_TINY
    }
};



/*--------------------
 *  ALL CUSTOM DATA
 *--------------------*/

#if LVGL_VERSION_MAJOR == 8
/*Store all the custom data of the font*/
static  lv_font_fmt_txt_glyph_cache_t cache;
#endif

#if LVGL_VERSION_MAJOR >= 8
static const lv_font_fmt_txt_dsc_t font_dsc = {
#else
static lv_font_fmt_txt_dsc_t font_dsc = {
#endif
    .glyph_bitmap = glyph_bitmap,
    .glyph_dsc = glyph_dsc,
    .cmaps = cmaps,
    .kern_dsc = NULL,
    .kern_scale = 0,
    .cmap_num = 1,
    .bpp = 4,
    .kern_classes = 0,
    .bitmap_format = 0,
#if LVGL_VERSION_MAJOR == 8
    .cache = &cache
#endif
};



/*-----------------
 *  PUBLIC FONT
 *----------------*/

/*Initialize a public general font descriptor*/
#if LVGL_VERSION_MAJOR >= 8
const lv_font_t app_status_bar_font_music_symbol = {
#else
lv_font_t app_status_bar_font_music_symbol = {
#endif
    .get_glyph_dsc = lv_font_get_glyph_dsc_fmt_txt,    /*Function pointer to get glyph's data*/
    .get_glyph_bitmap = lv_font_get_bitmap_fmt_txt,    /*Function pointer to get glyph's bitmap*/
    .line_height = 18,          /*The maximum line height required by the font*/
    .base_line = 3,             /*Baseline measured from the bottom of the line*/
#if !(LVGL_VERSION_MAJOR == 6 && LVGL_VERSION_MINOR == 0)
    .subpx = LV_FONT_SUBPX_NONE,
#endif
#if LV_VERSION_CHECK(7, 4, 0) || LVGL_VERSION_MAJOR >= 8
    .underline_position = 0,
    .underline_thickness = 0,
#endif
    .dsc = &font_dsc,          /*The custom font data. Will be accessed by `get_glyph_bitmap/dsc` */
#if LV_VERSION_CHECK(8, 2, 0) || LVGL_VERSION_MAJOR >= 9
    .fallback = NULL,
#endif
    .user_data = NULL,
};



#endif /*#if APP_STATUS_BAR_FONT_MUSIC_SYMBOL*/

